﻿<%@ Page Title="" Language="C#" MasterPageFile="~/NestedMasterPage.master" AutoEventWireup="true" CodeBehind="WebChangePwd.aspx.cs" Inherits="Web.WebChangePwd" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <p style="padding:10px 0px 10px 0px;">
         <asp:SiteMapPath ID="SiteMapPath1" runat="server" CssClass="sitmap"
        Style="font-family: 幼圆; font-size: medium" Font-Names="Verdana" Font-Size="0.8em"  PathSeparator=" > ">
        <PathSeparatorStyle Font-Bold="True" ForeColor="#990000" />
        <CurrentNodeStyle ForeColor="#333333" />
        <NodeStyle Font-Bold="True" />
        <RootNodeStyle Font-Bold="True"  />
    </asp:SiteMapPath>
    </p>
    <link href="css/bootstrap.min.css" rel="stylesheet" />
    <div class="panel panel-default">
        <div class="panel-body">
            <form role="form" id="frm">
                <input type="hidden" name="Id" value="<%=ClientID %>" id="Id" />
                <div class="form-group">
                    <label for="name">旧密码</label>
                    <input type="password" class="form-control" id="oldpwd" name="oldpwd"  placeholder="请输入旧密码">
                </div>
                <div class="form-group">
                    <label for="Address">新密码</label>
                    <input type="password" class="form-control" id="newpwd" name="newpwd"  placeholder="请输入新密码">
                </div>
                <div class="form-group">
                    <label for="Address">确认密码</label>
                    <input type="password" class="form-control" id="truepassword" name="truepassword"  placeholder="请输入确认密码">
                </div>
                <button type="submit" class="btn btn-default">提交</button>
            </form>
        </div>
    </div>
     <script src="js/jquery.form.js"></script>
     <script>
         var options = {
             target: '#frm',
             success: suncess,
             url: "../Hanlder/UserHanlder.ashx?Method=ChangePwd",
             type: "post",
             dataType: "json",
             timeout: 3000
         }
         $("#frm").ajaxForm(options);
         function suncess(data) {
             var res = data;

             if (res.states == "1") {
                 alert(res.msg);
             }
             else {
                 alert('修改成功');
                 location.reload();
             }
         }
    </script>
</asp:Content>
